package com.wjgl.action;

import com.opensymphony.xwork2.ActionSupport;
import com.wjgl.service.InstitutionService;
import com.wjgl.service.UserService;

public class LockInstitutionAction extends ActionSupport {
	private Integer id;
	private InstitutionService institutionService;

	public void setId(Integer id) {
		this.id = id;
	}

	public void setInstitutionService(InstitutionService institutionService) {
		this.institutionService = institutionService;
	}


	@Override
	public String execute() throws Exception {
		// TODO Auto-generated method stub
		institutionService.lockInstitution(id);
		return SUCCESS;
	}
	
}
